import Layout from "@/layout";

const managerPermission = [
  {
    path: "/home",
    component: Layout,
    children: [
      {
        path: "index",
        name: "Home",
        component: () => import("@/views/manager/Home.vue"),
        meta: { title: "Dashboard", icon: "dashboard" }
      }
    ]
  },
  {
    path: "/members",
    component: Layout,
    children: [
      {
        path: "list",
        name: "Members",
        component: () => import("@/views/manager/DepartmentMembers.vue"),
        meta: { title: "部门员工", icon: "dashboard" }
      },
      {
        path: "detail",
        name: "SimpleInfo",
        component: () => import("@/views/manager/SimpleInfo.vue"),
        hidden: true
      }
    ]
  },
  {
    path: "/performance",
    component: Layout,
    name: "Performance",
    meta: { title: "绩效管理", icon: "dashboard" },
    children: [
      {
        path: "/set_tasks",
        name: "SetTaskS",
        component: () => import("@/views/manager/SetTasks.vue"),
        meta: { title: "分配任务", icon: "dashboard" }
      },
      {
        path: "/judge_performance",
        name: "PerformanceJudge",
        component: () => import("@/views/manager/PerformanceJudge.vue"),
        meta: { title: "绩效考核", icon: "dashboard" }
      }
    ]
  },
  {
    path: "/evaluation",
    name: "Evaluation",
    component: Layout,
    meta: { title: "定期评价", icon: "dashboard" },
    children: [
      {
        path: "evaluation_list",
        component: () => import("@/views/manager/Evaluation.vue"),
        meta: { title: "待评价名单", icon: "dashboard" }
      },
      {
        path: "evaluation_details",
        name: "EvaluationDetails",
        component: () => import("@/views/manager/EvaluationDetails.vue"),
        meta: { title: "前往评价", icon: "dashboard" }
      }
    ]
  },
  {
    path: "/archives",
    component: Layout,
    name: "Archives",
    meta: { title: "档案管理", icon: "el-icon-time" },
    children: [
      {
        path: "/list",
        name: "ArchivesList",
        component: () => import("@/views/manager/Archives.vue"),
        meta: { title: "员工档案", icon: "el-icon-time" }
      },
      {
        path: "/details",
        name: "ArchiveDetails",
        component: () => import("@/views/manager/ArchiveDetails.vue"),
        meta: { title: "档案详情", icon: "el-icon-time" }
      },
      {
        path: "/fileInCompany",
        name: "FileInCompany",
        component: () => import("@/views/manager/FileInCompany"),
        hidden: true
      }
    ]
  }
];

export default managerPermission;
